<?php

	class PowersController extends  BaseController{

		protected  $_className ="Powers";

		public function getPowersList($filter=null){
			return parent::getEntityList($filter);
		}

		public function getGroupList(){
			return parent::getEntityList(null,null,"PowerGroup");
		}

		public function getGroupWithPowers(){
			return parent::getBeaanList("PowerGroup",null,null,0,true);
		}


		public function getRoleList($filter){
			return parent::getEntityList(null,null,"Roles",null,null,true);
		}


		public function getRoleById($id){
			return parent::getEntityByid($id,$false,"Roles");
		}

		public function saveRoles($post_json,$transaction){
			return parent::save($post_json,$transaction,"Roles");
		}


		public function deleteRole($id){
			return parent::delete($id,"Roles");
		}

		public function savePowerList(){
			parent::save($post_json,$transaction);
		}

		public function deletePowerList($id)
		{
			parent::delete($id);
		}

	}

?>